import {request} from '../../utils/request'


export function login(data){
    return request({
        url: '/oauth-server/oauth/token',
        method: 'POST',
        data: data
    })
}
export function wechartLogin(openId){
    return request({
        url: '/oauth-server/oauth/wechartLogin/'+openId,
        method: 'GET'
    })
}

export function getUserInfo(){
    return request({
        url: '/middle-server/api/user/getUserInfo',
        method: 'GET'
    })
}

export function updateUserInfo(params){
    return request({
        url: '/middle-server/api/user/updateUserInfo',
        method: 'post',
		contentType:'JSON',
		data:params
    })
}